package com.xiaoniu.forum.web.controller.app;

import com.xiaoniu.forum.common.utils.R;
import com.xiaoniu.forum.form.AppSMSForm;
import com.xiaoniu.forum.service.AppSMSService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/app/community")
public class AppSMSController {

    @Autowired
    private AppSMSService smsService;

    @PostMapping("/sendMessage")
    public R sendMessage(@RequestBody String phone){
        smsService.sendMessage(phone);
        return R.ok();
    }
}
